package org.setec;

import org.setec.Service;

public class RealService implements Service {

    protected final Object SAMPLE_DATA = "Sample service data";
    protected final Object[] SAMPLE_SETTINGS = new Object[] { "String setting", 31337 };

    private String appendix = "default";

    public Object getData() {
        return SAMPLE_DATA;
    }

    public Object getSettings() {
        return SAMPLE_SETTINGS;
    }

    public Object getSettings(String arg) {
        return new Object[] { SAMPLE_SETTINGS[0] + arg + appendix, SAMPLE_SETTINGS[1] };
    }

    public String getVersion(){
        return "1.0.0";
    }

    public void change(String mod) {
        appendix = mod;
    }
}
